{template Public:Page:header_shop}

<div class="col-lg-10 well-col-pl-30">
    <div class="row">
     	 <div class="well" style="background:#FFF">
				<h3>服务商中标</h3>
                 <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>
                                <strong>任务</strong>
                            </th>
                            
                            <th>
                                <strong>雇主</strong>
                            </th>
                            
                            <th>
                                <strong>中标金额</strong>
                            </th>
                            
                            <th>
                                <strong>中标类型</strong>
                            </th>
                            <th>
                                <strong>中标时间</strong>
                            </th>
                        </tr>
                    </thead>
                    <tbody id="ListSuccess"></tbody>
                </table>
                 </div>
                 <div class="dataTables_paginate paging_bootstrap text-right" id="ListSuccessPage"></div>
     	 </div>
    </div>
</div>


</div></div>

<script>
$(function(){
	GetDataSuccess('/get/shop/success/seller_uid/{echo $member["uid"]}');
});
function GetDataSuccess(url){
	$('#ListSuccess').html('加载中...');
	$.getJSON(url, function(json){
		if(json.status=='ok'){
			if(json.data.list){
				var data='';
				if(json.data.list){
					for(var key in json.data.list){
						data+='<tr>'+
                            '<td><a target="_blank" href="/task/'+json.data.list[key].id+'">'+json.data.list[key].subject+'</a></td>'+
							'<td>'+json.data.list[key].buyer_username+'</td>'+
							'<td><span class="color_f60">￥'+json.data.list[key].money+'</span></td>'+
							'<td>'+json.data.list[key].tasktype+'</td>'+
							'<td>'+json.data.list[key].verifytime+'</td>'+
                        '</tr>';
					}
				}
	 
				$('#ListSuccess').html(data);
				var page='';
				if(json.data.page){
					page='<ul class="pagination">'+json.data.page+'</ul>';
				}
				
				$("#ListSuccessPage").html(page);
				
			}else{
				$('#ListSuccess').html('没有数据!');
			}
		}else{
			$('#ListSuccess').html('没有数据!');
		}
	});
}
</script>

{template Shop:Fuwu:employ}

{template Public:Page:footer}